import request from '@/utils/request.js';

// 获取父级栏目
export const getParentColumnsService = () => {
    return request.get('/user/getPColumns');
  }

// 获取父级———子栏目
export const getChildrencolumnsService = (pid) => {
    return request.get(`/user/getColumns?pid=${pid}`);
  };

//文章列表查询
export const getArticleListService = (params) => {
    return request.get('/user/ArticleList', { params: params })
  }

// 获取栏目详情服务
export const getColumnDetailService = (cid) => {
    return request.get(`/user/columnDetail?cid=${cid}`);
  };

//获取文章详情服务
export const getArticleService = (articleId) => {
    return request.get(`/user/ArticleDetail?articleId=${articleId}`);
  };
